-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#9] Task CRUD API 스펙 정의 및 생성 #10
Conversation
|
||
@Test | ||
void 조회할_Task가_존재하지_않는다면_실패응답메시지를_받는다() throws Exception { | ||
mockMvc.perform(RestDocumentationRequestBuilders.get("/v1/tasks/{id}", 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mockMvc
와 testRestTemplate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tomcat Server에 대해서 잘 모르는것 같아 우선 정리하고, 두가지의 차이점을 알아본다음에 필요한 경우 수정해보겠습니다!
우선 PR이 오래 살아있는 것 같아 나누어서 다음 PR로 나누어서 올리겠습니다 😀
api/src/test/java/com/taskbuddy/api/controller/TestControllerTest.java
Outdated
Show resolved
Hide resolved
|
||
public record TaskCreateRequest( | ||
String title, | ||
String description, | ||
TimeFrame timeFrame | ||
) {} | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 부분이랑 스타일이 다른 것 같네요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spring Validation 의존성을 추가하기 전에 Request에 대한 Validation을 진행해야할 것 같아 Assert 를 추가한 유효성검증 로직을 추가하면서 생성자를 만들었습니다. Spring Validation Annotation을 붙이면 해당 생성자는 제거하려고 합니다!
전체적으로는 괜찮은 것 같습니다. mockMVC는 나중에 업데이트 하실 예정이신건가요? 그럼 이 PR은 머지해도 괜찮을 것 같네요. |
넵 mockMvc 내용은 별도로 올리겠습니다! 리뷰 감사합니다 😃 |
변경 내용
jackson-datatype-jsr310
dependency 추가java 8 date/time type 'java.time.localdatetime' not supported by default